PackageStore.GetPackageReader Method (PackageItemIdentifier, string)

Internal function that allows StoredLearningSession to reduce database calls.

Parent Type: PackageStore

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

protected internal abstract PackageReader GetPackageReader (
PackageItemIdentifier packageId,
string packageLocation

)

Parameters

packageId

The id of the package to read.

packageLocation

The value of the Location column in LearningStore for this package. Note that this may not be validated by the derived class as matching packageId. If it does not match the packageId, the results are unpredictable, but the package should be read from this location.

Return Value

A reader for the requested package.

Exceptions
Exception type Condition
LearningStoreItemNotFoundException

Thrown if packageId does not represent a package in the store.